package service;

import pojo.Car;
import pojo.Record;
import pojo.User;

import java.util.ArrayList;
import java.util.Date;

public interface UserService {
    public User sign_in(String name, String password);
    public void login(String name, String password);
    public Record rent(int id,User user);
    public ArrayList<Car> sort(String choice);
    public ArrayList<Car> type(String type);
    public ArrayList<Car> brand(String brand);
    public void showAllCar(User user);
    public ArrayList<Record> carRent();
    public Record backCar(int id,User user);
    public int getDay(Date rent, Date back);
}